<% layout("/common/layout.html",{"title":pageTitle+"报表统计"}){ %>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-8">
        <h2>${pageTitle!}报表统计</h2>
        <ol class="breadcrumb">
            <li><a href="${ctxPath}/admin/main">主页</a></li>
            <li>${pageTitle!}报表统计</li>
        </ol>
    </div>
    <div class="col-sm-4">
        <div class="title-action">
            <a class="btn btn-primary btn-sm btn-outline" href="/companyApply/view/index"><i class="fa fa-reply"> </i> 返回列表</a>
        </div>
    </div>
</div>

<div class="wrapper wrapper-content">

    <div class="panel panel-default">
        <div class="panel-heading text-center center-block">
            <div class="btn-group">
                <%
                if(isNotEmpty(reportOrderList)){
                for(order in reportOrderList){
                var orderKey = order.key+'';
                %>

                <a href="${order.key!}" class="btn btn-primary btn-sm btn-outline ${webUtil.contain(request.requestURI,orderKey)?'active'}"></i>&nbsp;${order.text!}</a>
                <%
                }}
                %>
            </div>
        </div>
        <div class="panel-body">
            <div id="container"></div>
        </div>
        <div class="panel-footer clearfix">
            <div class="col-sm-2 col-md-2">
                <p><strong>未提交:<span class="text-danger">${sumNothingTask!0}</span></strong></p>
            </div>
            <div class="col-sm-2 col-md-2">
                <p><strong>待认领:<span class="text-danger">${sumClaimTask!0}</span></strong></p>
            </div>
            <div class="col-sm-2 col-md-2">
                <p><strong>办理中:<span class="text-danger">${sumHandleTask!0}</span></strong></p>
            </div>
            <div class="col-sm-2 col-md-2">
                <p><strong>退回修改:<span class="text-danger">${sumRefuseTask!0}</span></strong></p>
            </div>
            <div class="col-sm-2 col-md-2">
                <p><strong>审核通过:<span class="text-danger">${sumPassTask!0}</span></strong></p>
            </div>
            <div class="col-sm-2 col-md-2">
                <p><strong>取消办理:<span class="text-danger">${sumInvalidTask!0}</span></strong></p>
            </div>
        </div>
    </div>

</div>
<% } %>
<script type="text/javascript">
    //页面JS调用
    require(['company/apply'], function (apply) {
        var data = {'sumNothingTask':${sumNothingTask},'sumClaimTask':${sumClaimTask}, 'sumHandleTask':${sumHandleTask}, 'sumRefuseTask':${sumRefuseTask}, 'sumPassTask':${sumPassTask},'sumInvalidTask':${sumInvalidTask}}
        apply.report(data,'${reportTitle!"报告"}');
    });
</script>
